import { EntitySchema } from '@mikro-orm/core';

export class LeEvaluateRepository {
  id!: string;
  name!: string;
  createdTime: number = 0;
  updatedTime: number = 0;
  deletedTime: number = 0;
  isDeleted: number = 0;
}

export const LeEvaluateRepositorySchema = new EntitySchema({
  class: LeEvaluateRepository,
  properties: {
    id: { primary: true, type: 'string', columnType: 'bigint' },
    name: { type: 'string', length: 20 },
    createdTime: { type: 'number', default: 0 },
    updatedTime: { type: 'number', default: 0 },
    deletedTime: { type: 'number', default: 0 },
    isDeleted: { type: 'number', default: 0 },
  },
});
